put the newly selected row(s) the in the middle of the view,
authorKristian Rietveld <kris@imendio.com>
Tue, 16 May 2006 12:34:01 +0000 (12:34 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Tue, 16 May 2006 12:34:01 +0000 (12:34 +0000)
2006-05-16  Kristian Rietveld  <kris@imendio.com>

* gtk/gtkfilechooserdefault.c
(show_and_select_paths_finished_loading): put the newly selected
row(s) the in the middle of the view,
(update_current_folder_get_info_cb),
(gtk_file_chooser_default_update_current_folder): make sure reload
state is set to RELOAD_HAS_FOLDER while loading the new folder,
so _map() won't start loading the current working directory. (Fixes
#341028, reported by Michael Natterer).

ChangeLog
ChangeLog.pre-2-10
gtk/gtkfilechooserdefault.c

index adbdabeb9592f84454496cc9b79574a86e347523..a57830c4dec974ee85a4bdb88c1ef542efd1a2cd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2006-05-16  Kristian Rietveld  <kris@imendio.com>
+
+       * gtk/gtkfilechooserdefault.c
+       (show_and_select_paths_finished_loading): put the newly selected
+       row(s) the in the middle of the view,
+       (update_current_folder_get_info_cb),
+       (gtk_file_chooser_default_update_current_folder): make sure reload
+       state is set to RELOAD_HAS_FOLDER while loading the new folder,
+       so _map() won't start loading the current working directory. (Fixes
+       #341028, reported by Michael Natterer).
+
 2006-05-15  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix
index adbdabeb9592f84454496cc9b79574a86e347523..a57830c4dec974ee85a4bdb88c1ef542efd1a2cd 100644 (file)
@@ -1,3 +1,14 @@
+2006-05-16  Kristian Rietveld  <kris@imendio.com>
+
+       * gtk/gtkfilechooserdefault.c
+       (show_and_select_paths_finished_loading): put the newly selected
+       row(s) the in the middle of the view,
+       (update_current_folder_get_info_cb),
+       (gtk_file_chooser_default_update_current_folder): make sure reload
+       state is set to RELOAD_HAS_FOLDER while loading the new folder,
+       so _map() won't start loading the current working directory. (Fixes
+       #341028, reported by Michael Natterer).
+
 2006-05-15  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix
index 79bd12e22bbeb3b03e41dc823e27180819d3d176..d5b6119c8fb20d75f3e90635caf76879d1dcd596 100644 (file)
@@ -5768,6 +5768,8 @@ show_and_select_paths_finished_loading (GtkFileFolder *folder,
                                      select_func, data->impl);
     }
 
+  browse_files_center_selected_row (data->impl);
+
   gtk_file_paths_free (data->paths);
   g_free (data);
 }
@@ -6089,6 +6091,7 @@ update_current_folder_get_info_cb (GtkFileSystemHandle *handle,
     goto out;
 
   impl->update_current_folder_handle = NULL;
+  impl->reload_state = RELOAD_EMPTY;
 
   set_busy_cursor (impl, FALSE);
 
@@ -6192,6 +6195,8 @@ gtk_file_chooser_default_update_current_folder (GtkFileChooser    *chooser,
   data->path = gtk_file_path_copy (path);
   data->keep_trail = keep_trail;
 
+  impl->reload_state = RELOAD_HAS_FOLDER;
+
   impl->update_current_folder_handle =
     gtk_file_system_get_info (impl->file_system, path, GTK_FILE_INFO_IS_FOLDER,
                              update_current_folder_get_info_cb,